<template>
	<view class="listitem" @click="goadd(item)">
		<div class="listitemTitle">{{item.WorkUnitName}}</div>
		<div class="listitemcenter">
			<div class="listitemcenterl">
				<div class="label">
					负责人
				</div>
				<div class="desc">
					{{item.Principal}}
				</div>
			</div>
			<div class="listitemcenterl">
				<div class="label">
					电话
				</div>
				<div class="desc">
					{{item.Telephone}}
				</div>
			</div>
		</div>
		<div class="address">
			{{item.Address}}
		</div>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				style: {
					// 字符串的形式
					p: 'font-size:28rpx;',
					span: 'font-size: 28rpx;',
				}
			}
		},
		props: {
			item: {
				type: Object,
				default () {
					return {};
				}
			}
		},
		computed: {

		},
		methods: {
			goadd(item) {
				uni.setStorageSync('companyManagementData', item)
				uni.navigateTo({
					url: '/pages/home/enterprise/companyManagement/add/add'
				})
			},
			gettype(e) {
				console.log(e)
				this.type = e.value[0]
			}
		}
	}
</script>

<style scoped lang="scss">
	.listitem {
		margin: 0 auto;
		width: calc(694rpx - 64rpx);
		background: #FFFFFF;
		border-radius: 20rpx;
		padding: 32rpx;
		margin-bottom: 24rpx;

		.listitemTitle {
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #272A5F;
			width: 100%;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
		}

		.listitemcenter {
			width: 630rpx;
			height: 139rpx;
			background: rgba(#4087FF, 0.05);
			border-radius: 12rpx;
			margin-top: 28rpx;
			display: flex;
			justify-content: flex-start;
			align-items: center;
			flex-wrap: nowrap;
			flex-direction: row;
			align-content: flex-start;

			.listitemcenterl {
				width: calc(50% - 32rpx);
				margin-left: 32rpx;

				.label {
					font-size: 24rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #6F7197;
				}

				.desc {
					font-size: 30rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 500;
					color: #141852;
				}
			}

			.listitemcenterl:nth-child(1) {
				border-right: 1rpx solid #E8EBF2;
			}
		}

		.address {
			font-size: 26rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #5B5D85;
			margin-top: 28rpx;
		}
	}
</style>
